//
//  ArtEvent.h
//  SmartRoadShow
//
//  Created by  ibokan on 10-9-25.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
 * 艺术地图－艺术活动
 */

@interface ArtEvent : NSObject 
{
	int _id;
	int news_id;
	NSString *_title;

	// 图片地址
	NSString *_thumb;
	NSString *_city;
	int _level;
	NSString *_starttime;
	NSString *_endtime;
	NSString *_address;
	NSString *_tel;
	NSString *_googleposi;
	NSString *_content;
}
@property int _id;
@property int news_id;
@property int _level;
@property (nonatomic, retain) NSString *_title;
@property (nonatomic, retain) NSString *_thumb;
@property (nonatomic, retain) NSString *_city;
@property (nonatomic, retain) NSString *_starttime;
@property (nonatomic, retain) NSString *_endtime;
@property (nonatomic, retain) NSString *_address;
@property (nonatomic, retain) NSString *_tel;
@property (nonatomic, retain) NSString *_googleposi;
@property (nonatomic, retain) NSString *_content;

+(BOOL) IsExistArtEvent:(NSString *)dateString;

+(NSArray *) searchAllArtEvents:(NSString *)dateString;

+(NSArray *) findCity:(NSString *)city Begintime:(NSString *)beginStr Endtime:(NSString *)endStr;

+(NSArray *)findAll;

+(BOOL) findNewsId:(int)newsId;

+(BOOL) updateArtEvent:(ArtEvent*)artEvent;

+(int) updateWithNewsID:(int)newsId Title:(NSString *)title Thumb:(NSString *)thumb City:(NSString *)city Level:(int)level Starttime:(NSString *)start Endtime:(NSString *)end Address:(NSString *)add Tel:(NSString *)tel Googleposi:(NSString *)posi Content:(NSString *)content;

+(int) insertWithNewsID:(int)newsId Title:(NSString *)title Thumb:(NSString *)thumb City:(NSString *)city Level:(int)level Starttime:(NSString *)start Endtime:(NSString *)end Address:(NSString *)add Tel:(NSString *)tel Googleposi:(NSString *)posi Content:(NSString *)content;

+(int)delete:(int)newsid;

-(id) initWithID:(int)Id NewsID:(int)newsId Title:(NSString *)title Thumb:(NSString *)thumb City:(NSString *)city Level:(int)level Starttime:(NSString *)start Endtime:(NSString *)end Address:(NSString *)add Tel:(NSString *)tel Googleposi:(NSString *)posi Content:(NSString *)content;


@end
